//
//  ContactCellView.h
//  Guazi
//
//  Created by koolearn on 11-5-8.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"


#define IMAGE_PADDING       10
#define IMAGE_WIDTH		 50
#define H_MARGIN            10
#define INDICATOR_WIDTH     (30 - H_MARGIN)
#define DETAIL_BUTTON_WIDTH (45 - H_MARGIN)

#define TOP                 (16 + 1)
#define LEFT                (IMAGE_PADDING * 2 + IMAGE_WIDTH)
#define CELL_WIDTH          (320 - LEFT)
#define TIMESTAMP_WIDTH     60
#define TIMESTAMP_LEFT      (LEFT + CELL_WIDTH) - TIMESTAMP_WIDTH



@interface ContactCellView : UIView {
	
	User* user;
    NSString* searchText;
    BOOL isSearching;
}


@property (nonatomic, retain) User* user;
@property (nonatomic, retain) NSString* searchText;
@property (nonatomic, assign) BOOL isSearching;

+ (CGFloat) getViewHeight:(User*)auser isSearching:(BOOL)searching;


@end
